package cn.com.jcoo.config;

import lombok.Data;
import net.sf.ehcache.store.MemoryStoreEvictionPolicy;

@Data
public class EhcacheProperties {
    private String name = "sa-token-store";

    private String diskStorePath = System.getProperty("java.io.tmpdir");

    private int maxEntriesLocalHeap;

    private boolean overflowToDisk;

    private int diskSpoolBufferSizeMB;

    private MemoryStoreEvictionPolicy memoryStoreEvictionPolicy = MemoryStoreEvictionPolicy.LRU;

    private boolean eternal;

    private int timeToLiveSeconds;

    private int timeToIdleSeconds;

    private boolean diskPersistent;

    private int maxEntriesLocalDisk;

    private String defaultCacheName = "sa-token-cache";
}
